//
//  LoginController.h
//  iMAL
//
//  Created by Stefano Pigozzi on 2/10/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "MALHandler.h"
#import "PGZWindow.h"


@interface LoginController : NSObject {

	// window
	IBOutlet PGZWindow* mainWindow;

	// views
	IBOutlet NSView * mainView;
	IBOutlet NSView * loginView;
	IBOutlet NSProgressIndicator * circularLoginProgress;
	IBOutlet NSTextField * message;
	
	// outlets
	IBOutlet MALHandler * mal;
	
	//login info
	NSString * userLogin;
	NSString * passwordLogin;
	BOOL rememberLogin;	
}

@property (retain) NSString * userLogin;
@property (retain) NSString * passwordLogin;
@property (assign) BOOL rememberLogin; 

-(IBAction) login:(id) sender;
-(IBAction) logout:(id) sender;
-(NSRect)newFrameForNewContentView:(NSView *)view;

@end
